package com.qa.dom.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.qa.dom.dto.HomePageDto;
import com.qa.dom.dto.TeacherDetailDto;
import com.qa.dom.entity.Param;
import com.qa.dom.entity.Usertable;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public interface IUsertableService extends IService<Usertable> {

    List<HomePageDto> queryHomePage(Usertable usertable);
    Page<HomePageDto> queryHomePageByPage(Page<HomePageDto> page, Usertable usertable);
    public TeacherDetailDto queryTeacher(Usertable usertable,Integer teacherId);

    public Object queryUsertableById(Integer id);

    public boolean updateStuNickname(Integer id, String nickname);
    public Param queryGrade(String phone);

    boolean updateStuImg(Integer id, String sheadimg);
}
